const initState = {
  list: []
}

const reducer = (state = initState, action) => {
  switch (action.type) {
    case 'SET_LIST':
      console.log('store.list 数据即将发生改变:', action.payload);
      return {
        ...state,
        list: action.payload
      }
    default:
      return state
  }
}

export default reducer